package com.rd.student.jike.class1.sunhao.day11;

public class TestGroup {
    public static void main(String[] args) {
        ThreadGroup currentGroup = Thread.currentThread().getThreadGroup();
        ThreadGroup parentGroup = currentGroup.getParent();
        System.out.println(currentGroup.getName());
        System.out.println(parentGroup.getName());
        ThreadGroup group  = new ThreadGroup("subThreadGroup1");
        ThreadGroup group1 = new ThreadGroup(group,"subThreadGroup2");
        System.out.println(group.getParent().getName());
        System.out.println(group1.getParent().getName());
    }
}
